//
//  TypeAllTopicCell.m
//  LiWuShuo
//
//  Created by 袁小航 on 14/11/18.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TypeAllTopicCell.h"
#import "Define.h"

@implementation TypeAllTopicCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
//        自定义cell
        [self defineAllTypeCell];
    }
    return self;
}

#pragma mark - 自定义cell
- (void)defineAllTypeCell
{
    self.allTopicImage = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, PRO_IMAGE_WIDTH, PRO_IMAGE_HEIGHT)];
    [self.contentView addSubview:_allTopicImage];
    
    self.title = [[UILabel alloc]initWithFrame:CGRectMake(0, _allTopicImage.frame.size.height / 4, PRO_IMAGE_WIDTH, PRO_IMAGE_HEIGHT / 4)];
    _title.textAlignment = YES;
    [_title setFont:[UIFont fontWithName:@"Helvetica-Bold" size:20]];
    _title.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_title];
    
    self.cutLine = [[UILabel alloc]initWithFrame:CGRectMake(0, PRO_IMAGE_HEIGHT / 2 - 2, self.bounds.size.width, 5)];
    _cutLine.text = @"━━━━━━━ℛ━━━━━━━";
    _cutLine.textColor = [UIColor whiteColor];
    _cutLine.textAlignment = YES;
    [self.contentView addSubview:_cutLine];
    
    self.subTitle = [[UILabel alloc]initWithFrame:CGRectMake(0, _allTopicImage.frame.size.height/ 4 * 2, PRO_IMAGE_WIDTH, PRO_IMAGE_HEIGHT / 4)];
    _subTitle.textAlignment = YES;
    _subTitle.font = [UIFont systemFontOfSize:14];
    _subTitle.textColor = [UIColor whiteColor];
    [self.contentView addSubview:_subTitle];
}


@end
